import http from "./http.js";
import config from "@/config/index.config.js";


// 账号密码登录
export const memberLogin = (data) => http.POST(`${config.baseUrl}/starCityAll/user/login`, data);
// 微信一键登录
export const loginCode = (data) => http.POST(`${config.baseUrl}/starCityAll/user/loginCode`, data);
// 获取用户资料
export const getUserInfo = (data) => http.GET(`${config.baseUrl}/starCityAll/user/getUser`, data);
// 查询轮播图及公告信息
export const getBanners = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/banners`, data);
// 查询兼职列表
export const getPostList = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/secondList`, data);
// 查询兼职详情
export const getPostDetail = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/star/starCityDetailed`, data);
// 查询我的兼职
export const getMyPostList = (data) => http.GET(`${config.baseUrl}/starCityAll/enroller/usewrEnrollerList`, data);
// 查询我的收藏
export const getMyCollect = (data) => http.GET(`${config.baseUrl}/starCityAll/user/userCollectList`, data);
// 兼职收藏
export const postCollect = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/star/starCityCollect`, data);
//兼职取消收藏
export const postCollectCancel = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/star/starCityCollectCancel`, data);
//团队列表
export const teamList = (data) => http.GET(`${config.baseUrl}/starCityAll/team/teamList`, data);
// 兼职报名
export const enrollerSave = (data) => http.GET(`${config.baseUrl}/starCityAll/enroller/enrollerSave`, data);
// 获取公告列表
export const noticeList = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/noticeList`, data);
// 获取公告详情
export const noticeDetail = (data) => http.GET(`${config.baseUrl}/starCityAll/jinZhiIndex/getNotice`, data);
// 获取问答列表
export const serverMsgList = (data) => http.GET(`${config.baseUrl}/starCityAll/serverMsg/serverMsgList`, data);
// 提问
export const getIdServerMsg = (data) => http.GET(`${config.baseUrl}/starCityAll/serverMsg/getIdServerMsg`, data);
// 修改头像
export const editHead = (data) => http.GET(`${config.baseUrl}/starCityAll/user/editHead`, data);
// 发送邮箱验证码
export const emailCode = (data) => http.POST(`${config.baseUrl}/starCityAll/user/emailCode`, data);
// 发送手机验证码
export const phoneCode = (data) => http.GET(`${config.baseUrl}/starCityAll/user/sendCode`, data);
// 修改用户信息
export const editUser = (data) => http.POST(`${config.baseUrl}/starCityAll/user/editUser`, data);
// 获取资金日志
export const getMoneyLog = (data) => http.GET(`${config.baseUrl}/starCityAll/withdrawal/getMoneyLog`, data);
// 获取银行卡列表
export const getUserBankList = (data) => http.GET(`${config.baseUrl}/starCityAll/userBank/getUserBankList`, data);
// 提交提现申请
export const userWithdrawalSave = (data) => http.POST(`${config.baseUrl}/starCityAll/withdrawal/userWithdrawalSave`, data);
// 添加银行卡
export const userBankAdd = (data) => http.POST(`${config.baseUrl}/starCityAll/userBank/userBankAdd`, data);
// 发现兼职
export const findJob = (data) => http.POST(`${config.baseUrl}/starCityAll/settleIn/businessSaveNeed`, data);
//----xzy add  商家入驻
export const businessSave = (data) => http.POST(`${config.baseUrl}/starCityAll/settleIn/businessSave`, data);
//----xzy add  商家入驻详细信息查看
export const viewBuiness = (data) => http.GET(`${config.baseUrl}/starCityAll/settleIn/viewBuiness`, data);
//开通会员支付
export const payWxCreate = (data) => http.GET(`${config.baseUrl}/starCityAll/wxPay/payWxCreate`, data);
//帮帮支付
export const payWxCreateBb = (data) => http.POST(`${config.baseUrl}/starCityAll/wxPay/payWxCreateBb`, data);
//取消报名
export const cancelRegistration = (data) => http.GET(`${config.baseUrl}/starCityAll/enroller/cancelRegistration`, data);
//修改资金密码
export const editUserPayPass = (data) => http.POST(`${config.baseUrl}/starCityAll/user/editUserPayPass`, data);
//闲置物品分类
export const getCategory = (data) => http.GET(`${config.baseUrl}/starCityAll/commType/getCategory`, data);
//闲置物品列表
export const getIdleList = (data) => http.GET(`${config.baseUrl}/starCityAll/idleRelease/idleList`, data);
//闲置详情查看
export const idDetails = (data) => http.GET(`${config.baseUrl}/starCityAll/idleRelease/idDetails`, data);
//我的闲置
export const userLeLists = (data) => http.GET(`${config.baseUrl}/starCityAll/idleRelease/userLeLists`, data);
//查看用户是否绑定了学校
export const userSchool = (data) => http.GET(`${config.baseUrl}/starCityAll/idleRelease/userSchool`, data);

//闲置上下架
export const userLeListsEditState = (data) => http.GET(`${config.baseUrl}/starCityAll/idleRelease/userLeListsEditState`, data);
//查看商家发布的兼职
export const businessSaveList = (data) => http.GET(`${config.baseUrl}/starCityAll/settleIn/businessSaveList`, data);

//首页帮帮吧推荐
export const IndexbangbUrgentList = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbUrgent`, data);


//首页帮帮吧推荐
export const getBbbDetails = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbDetails
`, data);

//帮帮吧列表
export const getBbbList = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbUrgent`, data);

//帮帮管理
export const bangbPushListQuery = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbQuery`, data);

//订单管理
export const orderListQuery = (data) => http.GET(`${config.baseUrl}/starCityAll/bbOrder/bbOrderQuery`, data);
//发布帮帮吧
export const submitBbb = (data) => http.POST(`${config.baseUrl}/starCityAll/bangb/bangbSave`, data);

//帮帮下架
export const bangbRe = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbRe`, data);
//帮帮查看详情
export const bbbDetails = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbDetails`, data);

//帮帮编辑
export const bbbEdit = (data) => http.POST(`${config.baseUrl}/starCityAll/bangb/bangbEdit`, data);
//帮帮退款
export const bbreturnMoney = (data) => http.GET(`${config.baseUrl}/starCityAll/wxPay/payWxOrderReturn`, data);

//立即抢单
export const bborderAdd = (data) => http.GET(`${config.baseUrl}/starCityAll/bbOrder/bbOrderSave`, data);
//订单支付
export const payWxCreateBbOrder = (data) => http.POST(`${config.baseUrl}/starCityAll/wxPay/payWxCreateBb`, data);
//取消订单
export const payWxToOrderReturn = (data) => http.GET(`${config.baseUrl}/starCityAll/wxPay/payWxToOrderReturn`, data);
//订单确认服务
export const bbOrderConfirm = (data) => http.GET(`${config.baseUrl}/starCityAll/bbOrder/bbOrderConfirm`, data);


//订单详情
export const orderDetail = (data) => http.GET(`${config.baseUrl}/starCityAll/bbOrder/orderDetail`, data);
//帮帮类型获取
export const bangbType = (data) => http.GET(`${config.baseUrl}/starCityAll/bangb/bangbType`, data);